/*jslint */
/*global List, Jedi */

/**
 * @class
 * @name Jedi.PanelsList
 * @extends List
 */
Jedi.PanelsList = List.$extend({

    /**
     * @public
     * @function
     * @name Jedi.PanelsList#$init
     * @param {Object} config
     * @return {void}
     */
    $init : function (config) {
        'use strict';
        var name,
            list = [];
        config = config || {};
        for (name in config) {
            if (config.hasOwnProperty(name)) {
                list.push(Jedi.Panel.$create(name, config[name]));
            }
        }
        this.$super(list);
    }

});
